package com.geese.quartz;

import com.geese.module.business.service.ITransferRecordService;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 定时任务执行类
 * Created by huweiwei on 2017/3/29.
 */
public class JobTask {

    private static final Logger logger = Logger.getLogger(JobTask.class);

    @Autowired
    private ITransferRecordService transferRecordService;

    public void job(){
        generateTransferRecord();
    }

    /**
     * 生成打款账单
     */
    private void generateTransferRecord() {
        logger.warn("::::::::::::::: 开始-定时任务-生成商家账单 :::::::::::::::");
        transferRecordService.generateTransferRecord();
        logger.warn("::::::::::::::: 结束-定时任务-生成商家账单 :::::::::::::::");
    }
}
